package club.guadazi.wemarket.dao;

import club.guadazi.wemarket.entity.TUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository(value = "userMapper")
public interface UserMapper {
    public List<TUser> searchByKeyWord(@Param(value = "keyword") String keyword);

    TUser findById(int id);

    List<TUser> getUsers();

    void insertUser(TUser user);

    void removeUser(int id);

    void updateUser(TUser user);
}
